package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Membertype;

import java.util.List;

public interface MemberTypeDao {
    /*根据积分的多少获得该积分段的最该会员类型*/
    public int getMemberTypeId(int jifen);

    /*条件加模糊查询*/
    public List<Membertype> query(@Param("offset") int offset,@Param("limit") int limit);
    public int count();

    public void insert(Membertype membertype);

    public void update(Membertype membertype);

    public void delete(int id);
}
